<?php

// 本类由系统自动生成，仅供测试用途
class TagAction extends PublicAction {



    public function index() {






        $tag = $this->_get('tag');


    



//文章


        $articledb = D('TagsArticleView');


        $where_article['tags_item_title|article_title|article_desc|article_text'] = array('like', '%' . $tag . '%');

        // $where_ask['ask_title'] = array('like', '%' . $tag . '%');
        
        
        $where_article['tags_module_id'] = 1;
        $where_article['article_verifystatus'] = 1;
        $where_article['article_ispubish'] = 1;




        $article_lists = $articledb->where($where_article)->order('article_time desc')->group('article_id')->limit(10)->select();


        $article_lists = ToolsAction::resetArticleList($article_lists);




        $this->assign('list',$article_lists);


        
        
        
        
        
        


        $this->display();
    }



}

?>